<?php
/**
 * Created by PhpStorm.
 * User: XYX
 * Date: 2017/9/5
 * Time: 10:55
 */

namespace App\Api\Transformers;


use App\Clubvideo;
use League\Fractal\TransformerAbstract;

class ClubvideoTransformer extends TransformerAbstract
{
    public function transform(Clubvideo $item)
    {
        return
            [
                'video_id'=>$item['id'],
                'title'=>$item['title'],
                'cover_image'=>$item['cover_image'],
                'video_url'=>$item['video_url']
            ];
    }
}